package com.ztf.room.service;


import com.github.pagehelper.PageInfo;
import com.ztf.room.bean.RoomAdmin;
import com.ztf.room.bean.RoomApplyResults;
import com.ztf.room.bean.RoomApplys;
import com.ztf.room.bean.StudyRooms;

public interface StudyRoomService {
    // 获取自习室列表
    PageInfo<StudyRooms> getRoomList(int page, int limit);

    // 提交申请自习室
    boolean saveApplyRoom(RoomApplys roomApplys);

    // 获取申请的自习室列表
    PageInfo<RoomApplys> getApplyResultsByStu(int studentId, int page, int limit);

    // 管理查看学生申请的自习室
    PageInfo<RoomApplys> getApplyResults(int page, int limit);

    // 管理员处理申请请求
    boolean handleAppy(RoomApplyResults results, RoomAdmin roomAdmin);
}
